<?php

namespace App\Http\Controllers\web;

use App\Http\Controllers\Controller;
use App\Repository\RepositoryInterface\HeadGoodsInterface;
use Illuminate\Http\Request;

class HeadGoodsController extends Controller
{
    protected $headGoods;

    public function __construct(HeadGoodsInterface $headGoods){
        $this->headGoods = $headGoods;
    }

    /**
     * 添加团长商品
     * @param Request $request
     * @return mixed
     */
    public function addHeadGoods(Request $request){
        $params = $request->all();
        return $this->headGoods->addHeadGoods($params);
    }
}
